home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 January / Macworld (1997-01).dmg / Shareware World / Maths & Science / DynRisk 4.0.3 / DynRisk-Help / DynRisk-Help.rsrc / TEXT_2506.txt < prev    next >
Text File  |  1996-08-30  |  10KB  |  87 lines

  1. XY-plots
  2.  
  3. Scatter plots, Regression lines and Curve fits are all referred to as ‚ÄúXY-plots‚Äù. Such plots are produced using data from a pair of data nodes.
  4.  
  5. DynRisk allows you to produce any combination of the three XY-plot types in the same diagram.
  6.  
  7. Moreover, you can copy curves from one plot window and paste it into another using the ‚ÄúCopy‚Äù and ‚ÄúPaste‚Äù commands in the ‚ÄúEdit‚Äù menu. If you do this, make sure that both plots have the same scale on both the X-axis and the Y-axis by using the ‚ÄúSet scale‚Äù command.
  8.  
  9. Note also that you can add ‚Äúgridlines‚Äù to the plots corresponding to certain key statistics for the data nodes. Specifically, you can have gridlines indicating the location of the following statistics:
  10.  
  11.     ‚Ä¢ Base value
  12.     ‚Ä¢ Mean ¬± st.dev.
  13.     ‚Ä¢ Fractiles
  14.  
  15. The fractiles are chosen according to the currently selected fractile set. You can change this using the ‚ÄúFractiles‚Ķ‚Äù command.
  16.  
  17. To display the gridlines, click anywhere in the plot window while pressing the ‚ÄúCommand‚Äù key on the keyboard. This will bring up a popup menu from which you could select the desired statistics. To hide the gridlines, just repeat the same procedure.
  18.  
  19. Scatter plot
  20.  
  21. A ‚ÄúScatter plot‚Äù is a graph consisting of a ‚Äúcloud‚Äù of points reflecting the joint distribution of a pair of data nodes. Each point in the cloud represents corresponding values of the two data nodes from a single simulation. So if you make a ‚ÄúScatter plot‚Äù from a simulation data file where each data node contains say 1000 values, then the plot will show a cloud of 1000 points. If the points are spread all over the diagram with no particular structure, this indicates that there is no dependence between the two variables. In particular the correlation between the two data nodes is neglectable. On the other hand if the points are clustered around a straight line, the correlation may be significant. If the points are clustered closely around some nonlinear curve, the correlation may be small. Still there appears to some sort of dependence between the two data nodes.
  22.  
  23. If the frontmost window is a main document window for a simulation data file, the ‚ÄúScatter plot‚Äù command produces scatter plots for all selected pairs of data nodes. To select a pair of data nodes, select the first one whose values should appear along the X-axis in the ‚ÄúFirst selection‚Äù mode, and the second one whose values should appear along the Y-axis in the ‚ÄúSecond selection‚Äù mode.
  24.  
  25. If the frontmost window is an ‚ÄúXY-plot‚Äù window created by using the ‚ÄúScatter plot‚Äù command, this menu item is disabled. In this case the window title is of the form:
  26.  
  27.     <node1>(x) <node2>(y).scat
  28.  
  29. where <node1> is the name of the node whose values appear along the X-axis and <node2> is the name of the node whose values appear along the Y-axis.
  30.  
  31. If the frontmost window is an ‚ÄúXY-plot‚Äù window created by using either the ‚ÄúRegression line‚Äù command or the ‚ÄúCurve fit‚Äù command, this menu item is changed to either ‚ÄúHide Scatter plot‚Äù or ‚ÄúShow Scatter plot‚Äù depending on the state of the window. If the plot already contains a scatter plot, you can use the ‚ÄúHide Scatter plot‚Äù command to hide this scatter. On the other hand, if the plot does not contain a scatter plot, then you can use the ‚ÄúShow Scatter plot‚Äù command to show it.
  32.  
  33. Regression line
  34.  
  35. A ‚ÄúRegression line‚Äù is a graph that represents a best linear approximation to the relation between two data nodes. To see how well this line describes the ‚Äúreal‚Äù relation between the data nodes, you can view the regression line in the same diagram as a scatter plot. If the points are clustered closely around the regression line, the linear approximation is good. You can also compare the regression line to a curve fit. If there is a strong linear relation between the data nodes, then the regression line and the curve fit will be similar. In such cases, you do not gain much by using a more flexible (and thus also more complex) functional relationship as offered by the curve fit.
  36.  
  37. If the frontmost window is a main document window for a simulation data file, the ‚ÄúRegression line‚Äù command produces regression lines for all selected pairs of data nodes. To select a pair of data nodes, select the first one whose values should appear along the X-axis in the ‚ÄúFirst selection‚Äù mode, and the second one whose values should appear along the Y-axis in the ‚ÄúSecond selection‚Äù mode.
  38.  
  39. If the frontmost window is an ‚ÄúXY-plot‚Äù window created by using the ‚ÄúRegression line‚Äù command, this menu item is disabled. In this case the window title is of the form:
  40.  
  41.     <node1>(x) <node2>(y).reg
  42.  
  43. where <node1> is the name of the node whose values appear along the X-axis and <node2> is the name of the node whose values appear along the Y-axis.
  44.  
  45. If the frontmost window is an ‚ÄúXY-plot‚Äù window created by using either the ‚ÄúScatter plot‚Äù command or the ‚ÄúCurve fit‚Äù command, this menu item is changed to either ‚ÄúHide regr. line‚Äù or ‚ÄúShow regr. line‚Äù depending on the state of the window. If the plot already contains a regression line, you can use the ‚ÄúHide regr. line‚Äù command to hide this regression line. On the other hand, if the plot does not contain a regression line, then you can use the ‚ÄúShow regression line‚Äù command to show it.
  46.  
  47. Curve fit
  48.  
  49. A ‚ÄúCurve fit‚Äù is a graph that attempts to describe the functional relation between two data nodes. To see how well this curve describes the ‚Äúreal‚Äù relation between the data nodes, you can view the curve fit in the same diagram as a scatter plot. If the points are clustered closely around the curve fit, there is a strong functional relation between the two data nodes. You can also compare the curve fit to a regression line. If there is a strong linear relation between the data nodes, then the regression line and the curve fit will be similar. In such cases, you do not gain much by using a more flexible (and thus also more complex) functional relationship as offered by the curve fit.
  50.  
  51. DynRisk calculates the curve fit by modeling the relation between the two data nodes as a so-called Gaussian process. You can control how this is done by adjusting parameters such as ‚ÄúResolution‚Äù, ‚ÄúSmoothness‚Äù and ‚ÄúSensitivity‚Äù. To do this you select the node you want to adjust the parameter settings for and then use the ‚ÄúCurve fit settings‚Ķ‚Äù command.
  52.  
  53. If the frontmost window is a main document window for a simulation data file, the ‚ÄúCurve fit‚Äù command produces curve fits for all selected pairs of data nodes. To select a pair of data nodes, select the first one whose values should appear along the X-axis in the ‚ÄúFirst selection‚Äù mode, and the second one whose values should appear along the Y-axis in the ‚ÄúSecond selection‚Äù mode.
  54.  
  55. If the frontmost window is an ‚ÄúXY-plot‚Äù window created by using the ‚ÄúCurve fit‚Äù command, this menu item is disabled. In this case the window title is of the form:
  56.  
  57.     <node1>(x) <node2>(y).gf
  58.  
  59. where <node1> is the name of the node whose values appear along the X-axis and <node2> is the name of the node whose values appear along the Y-axis.
  60.  
  61. If the frontmost window is an ‚ÄúXY-plot‚Äù window created by using either the ‚ÄúScatter plot‚Äù command or the ‚ÄúRegression line‚Äù command, this menu item is changed to either ‚ÄúHide curve fit‚Äù or ‚ÄúShow curve fit‚Äù depending on the state of the window. If the plot already contains a curve fit, you can use the ‚ÄúHide curve fit‚Äù command to hide this curve fit. On the other hand, if the plot does not contain a curve fit, then you can use the ‚ÄúShow curve fit‚Äù command to show it.
  62.  
  63. Show/hide statistics
  64.  
  65. To the right of the main plot area in an ‚ÄúXY-plot‚Äù, DynRisk displays the basic statistics for the corresponding pair of data nodes: ‚ÄúSlope‚Äù, ‚ÄúIntercept‚Äù, ‚ÄúCovariance‚Äù, and ‚ÄúCorrelation‚Äù.
  66.  
  67. If the frontmost window is an ‚ÄúXY-plot‚Äù window, this menu item is changed to either ‚ÄúHide statistics‚Äù or ‚ÄúShow statistics‚Äù depending on the state of the window. If the plot already contains a legend, you can use the ‚ÄúHide legend‚Äù command to hide this. Conversely, if the plot does not contain a legend, then you can use the ‚ÄúShow legend‚Äù command to show it.
  68.  
  69. Note that this menu item is also used for editing ‚ÄúS-curves‚Äù, ‚ÄúInverse S-curves‚Äù and ‚ÄúHistograms‚Äù and is then called ‚ÄúHide/Show legend‚Äù.
  70.  
  71. Curve fit settings‚Ķ
  72.  
  73. DynRisk calculates the curve fit by modeling the relation between the two data nodes as a so-called Gaussian process. You can control how this is done by adjusting parameters such as ‚ÄúResolution‚Äù, ‚ÄúSmoothness‚Äù and ‚ÄúSensitivity‚Äù. To do this you select the node you want to adjust the parameter settings for and then use the ‚ÄúCurve fit settings‚Ķ‚Äù command.
  74.  
  75. Resolution
  76.  
  77. This parameter determines the density of fitted points along the curve.
  78.  
  79. Smoothness
  80.  
  81. By selecting a high smoothness factor, the fitting algorithm will try to find a ‚Äúsmoother‚Äù curve, i.e., local ‚Äújumps‚Äù will be straightened out. When using a low smoothness factor the algorithm interprets every ‚Äújump‚Äù as significant, and the curve will typically be very unstable.
  82.  
  83. Sensitivity 
  84.  
  85. This parameter determines how sensitive the algorithm is to large deviations from the mean value trend.
  86.  
  87. Note! Usually it is a good idea to select a rather high smoothness factor (e.g., 90). If you have many data points, you may choose ‚ÄúHigh‚Äù resolution, otherwise choose ‚ÄúMedium‚Äù or ‚ÄúLow‚Äù. The sensitivity factor should be greater than 50, unless you have very many data points. Make sure that the scale of the X-axis is chosen such that there are data points all along the axis.